package collisions.collisiongroups;

import sprites.interfaces.ICollider;

import collisions.collisionshapes.CollisionShape;

import com.golden.gamedev.object.CollisionManager;

public abstract class CaptureCollision extends CollisionManager
{
	public boolean isCollide(ICollider s1, ICollider s2, CollisionShape shape1, CollisionShape shape2) {
		if (shape1.intersects(shape2)) 
		{
			return CollisionManager.isPixelCollide(s1.getX(), s1.getY(), s1
					.getImage(), s2.getX(), s2.getY(), s2.getImage());
		}

		return false;
	}
}
